package com.xxx.blog.controller;


import com.xxx.blog.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author WangXJ
 * @since 2021-08-08
 */
@ResponseBody
@RestController
@RequestMapping("/blog/feedback")
public class FeedbackController {

    @Autowired
    FeedbackService feedbackService;

    @RequestMapping("/insertOneFeedBack/{uName}/{sex}/{email}/{phone}/{information}/{birth}")
    public int insertOneFeedBack(@PathVariable("uName") String uName,
                                 @PathVariable("sex") String sex,
                                 @PathVariable("email") String email,
                                 @PathVariable("phone") String phone,
                                 @PathVariable("information") String information,
                                 @PathVariable("birth") String birth){
        return feedbackService.insertOneFeedBack(uName,sex,email,phone,information,birth);
    }
}

